// var config = require("../utils/request");
import { request } from "../utils/request";

// getVoiceRequest

// 设置跳绳数据

export function submitRope(data) {
  return request("/skip/records/submit", data, "post");
}

// 获取跳绳记录数据

export function getMonthData(params) {
  return request("/skip/records/month.basic", params, "get");
}
// 获取年月日每日跳绳记录

export function getEveryDayData(params) {
  return request("/skip/records/month", params, "get");
}
// 获取7天跳绳记录

export function getSevenDayData(params) {
  return request("/skip/records/seven.days", params, "get");
}

export function getActiveLevel(params) {
  return request("/skip/active/level", params, "get");
}
// 获取秘钥

export function getRsaPublickey(params) {
  return request("/skip/records/rsa.publickey", params, "get");
}
